package com.ganzalang.gmall.resttemplate.dto;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import org.springframework.beans.BeanUtils;

import java.util.Map;

/**
 * @author Ganzalang
 * @description
 * @Date 2022/5/29 14:40
 */
public class Test {

    public static void main(String[] args) {
        PayRequest payRequest = new PayRequest();
        payRequest.setOrderNo("P1001");
        payRequest.setLastName("zhangsan");

        Map<String, Object> map = JSON.parseObject(JSON.toJSONString(payRequest));

        System.out.println(payRequest);
        System.out.println(map.entrySet());
    }
}
